<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>增加字段</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/style/layout.css"/> 
        <link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/style/content.css"/>
    </head>
    <body>
        <div class="cbox col9 f_l">
        <form action='<{:U('addfield')}>' method="POST">
            <input type="hidden" name="id" value="<{$channel.id}>"/>
            <div class="header"><h3>添加字段 </h3></div>
            <div class="content">
                <div class="innerbox">
                    <fieldset class="col9">
                        <label>模型ID：<{$channel.id}>   扩展表：<{$channel.addtable}> </label>
                    </fieldset>
                    <fieldset class='col5 f_l'>
                        <label>表单提示文字 itemname</label>
                        <input type='text' name="itemname"/>
                        <p>发布内容时显示的提示文字</p>
                    </fieldset>
                    <fieldset class='col4 f_l'>
                        <label>字段名称 fieldname</label>
                        <input type='text' name="fieldname" />
                        <p>扩展表中的真实字段，只能用字母或数字</p>
                    </fieldset>
                    <div class='f_c'></div>
                    
                    <fieldset class='col5 f_l'>
                        <label>表单类型 itemtype</label>
                        <select name="itemtype">
                            <option value='varchar'>单行文本varchar</option>
                            <option value='textarea'>多行文本textarea</option>
                            <option value='select'>选项select</option>
                            <option value='checkbox'>多选checkbox</option>
                            <option value='int'>整数int</option>
                            <option value='float'>小数float</option>
                            <option value='html'>富文本html</option>
                        </select>
                        <p>在发布表单中的表单类型，富文本html将调用编辑器<br />请根据需求选择合适的类型。</p>
                    </fieldset>
                    
                    <fieldset class='col4 f_l'>
                        <label>最大长度 maxlength</label>
                        <input type="text" value="250" name="maxlength"/>
                        <p>字段最大长度，必填</p>
                    </fieldset>
                    <div class='f_c'></div>
                    <fieldset class='col8'>
                        <label>默认值 defaultvalue</label>
                        <textarea name="defaultvalue"></textarea>
                        <p>char,varchar,textarea类型的字段默认value值，html该选项无效，select和checkbox选项列表必填,如"男人,女人,人妖"</p>
                    </fieldset>
                    <fieldset class="col4 f_l">
                        <label>是否分页</label>
                        <div>
                            <input type="radio" name='needpage' value="1"/>是 
                            <input type="radio" value="0" name='needpage' checked/>否
                        </div>
                    </fieldset>
                    <fieldset class="col4 f_l">
                        <label>分页标记</label>
                        <p class="helper">仅在开启分页时有效,内容将按此标记进行分页</p>
                        <input type="text" name='pagemark' value="#p#"/> 
                    </fieldset>
                    <div class='f_c'></div>
                </div>
            </div>
            <div class="footer">
                <div class="submit f_r">
                    一旦提交，不可更改
                    <input type="submit" value="Submit" class="subbtn"/>
                    <input type="reset" value="Reset"/>
                </div>
            </div>
        </form>
        </div>
        
    </body>
</html>
